<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<table style="width: 100%; border: 2px; background: #9fff; text-align: center" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <!--引入查询表单-->
            <jsp:include page="./leftParts/findProductsByName.jsp"/>
        </td>
    </tr>
    <tr>
        <td>
            <!--引入登录表单-->
            <jsp:include page="./leftParts/login.jsp" />
        </td>
    </tr>
</table>
<script language="JavaScript">
    //通过for循环，遍历每一项表单元素，验证表单元素的值是否为空
    function checkForm(form) { //form是要进行验证的表单名称
        for (let i = 0; i < form.length; i++) {
            if (form.elements[i].value === "") {
                alert("表单信息不能为空");
                return false;
            }
        }
    }
</script>